﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication10.App_Code;

namespace WebApplication10
{
    public partial class MasterCoverLetter : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
     
            CoverLetter s = new CoverLetter();
            s.Title = txtResumeTitle.Text;
            s.Institution = Education_School.Text;
            s.Grade = EducationGrade.Text;
            s.Description  = txtResume.Text;
            s.Course = EducationCourse.Text;

         
                int id = CoverLetter.InsertCompany(s) ;
                Response.Redirect("MasterSuccessfulCL.aspx?id=" + id);
                int num = CoverLetter.retrieveCoverLetter(id);
                if (num > 3)
                {

                }
        }
    }
}
